import request from '@/utils/request'
// 查询企业的部门列表
export const getDepartments = () => request.get('/company/department')
// 删除部门
export const delDepartment = (id) => request.delete(`/company/department/${id}`)
// 添加部门
export const addDepartment = (data) => request.post(`/company/department`, data)
// 新增部门
export const updateDepartment = (data) => request({
  method: 'PUT',
  url: `/company/department/${data.id}`,
  data
})
